package com.fjh.shop.user.feign.api;

import com.fjh.shop.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@FeignClient(name="shop-user",contextId = "shop-user")
public interface UserClient {
    @GetMapping("/admin/checkToken")
    public Result<Boolean> checkToken();

    @GetMapping("/member/getMemberIdByToken")
    public Result<Long> getMemberIdByToken();
}
